import request from '@/utils/request'

// 查询专家擅长列表
export function listSpecializes(query) {
  return request({
    url: '/system/specializes/list',
    method: 'get',
    params: query
  })
}

// 查询专家擅长详细
export function getSpecializes(esId) {
  return request({
    url: '/system/specializes/' + esId,
    method: 'get'
  })
}

// 新增专家擅长
export function addSpecializes(data) {
  return request({
    url: '/system/specializes',
    method: 'post',
    data: data
  })
}

// 修改专家擅长
export function updateSpecializes(data) {
  return request({
    url: '/system/specializes',
    method: 'put',
    data: data
  })
}

// 删除专家擅长
export function delSpecializes(esId) {
  return request({
    url: '/system/specializes/' + esId,
    method: 'delete'
  })
}
